/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jiadakeji.ppm.modules.business.entity;

import org.hibernate.validator.constraints.Length;

import com.jiadakeji.ppm.common.persistence.DataEntity;

/**
 * 车辆Entity
 * @author HHAOYU
 * @version 2019-07-08
 */
public class Car extends DataEntity<Car> {

	public static final String USED = "0";
	public static final String STOP = "1";
	
	private static final long serialVersionUID = 1L;
	private String roomId;		// 房屋id
	private String code;		// 车辆编号
	private String carTypePriceId;		// 车辆类型价格
	private String status;		// 状态
	private CarTypePrice carTypePrice;
	private Room room;
	
	public Car() {
		super();
	}

	public Car(String id){
		super(id);
	}

	@Length(min=0, max=32, message="房屋id长度必须介于 0 和 32 之间")
	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}
	
	@Length(min=1, max=32, message="车辆编号长度必须介于 1 和 32 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=32, message="车辆类型价格长度必须介于 0 和 32 之间")
	public String getCarTypePriceId() {
		return carTypePriceId;
	}

	public void setCarTypePriceId(String carTypePriceId) {
		this.carTypePriceId = carTypePriceId;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public CarTypePrice getCarTypePrice() {
		return carTypePrice;
	}

	public void setCarTypePrice(CarTypePrice carTypePrice) {
		this.carTypePrice = carTypePrice;
	}

	public Room getRoom() {
		return room;
	}

	public void setRoom(Room room) {
		this.room = room;
	}
}